
                                      

////////////////Alter query for Patient Table////////////////

ALTER TABLE "PatientReferredBy"
 ADD "LocationId" integer,   
  ADD  "CreatedBy" bigint NULL ,
   ADD "CreatedDate" timestamp without time zone  NULL ,
  ADD  "ModifiedBy" bigint,
   ADD "ModifiedDate" timestamp without time zone


///////////////////////////////////////////////////////////////////



UPDATE public."PatientReferredBy"
	SET  "CreatedBy" =1029,
"CreatedDate"='2022-05-18 17:20:48.435787', "LocationId" =4

/////////////////////////////////////////////////////////////////////////
ALTER TABLE "PatientReferredBy" ALTER COLUMN "CreatedBy" SET NOT NULL;
ALTER TABLE "PatientReferredBy" ALTER COLUMN "CreatedDate" SET NOT NULL;
ALTER TABLE "PatientReferredBy" ALTER COLUMN "LocationId" SET NOT NULL;